package com.jevons.geo_lib.geojson.adapter;

import androidx.annotation.Keep;

import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

import java.io.IOException;
import java.util.List;

/**
 * Copyright 2020 JxGIS
 *
 * @file ListOfDoublesCoordinatesTypeAdapter
 * @auth linaisheng
 * Created on 2022/7/13.
 * Description：
 */
@Keep
class ListOfDoublesCoordinatesTypeAdapter extends BaseCoordinatesTypeAdapter<List<Double>> {

    @Override
    public void write(JsonWriter out, List<Double> value) throws IOException {
        writePointList(out, value);
    }

    @Override
    public List<Double> read(JsonReader in) throws IOException {
        return readPointList(in);
    }
}